/**
 * Created by win0 on 2017/10/18.
 */
$(function () {
    $("body").append('<ul class="hoverMenu list-group"></ul>');
    $(".hoverMenu").load("../index.html .menu ul>*",function () {
        $(this).prepend('<li class="list-group-item"><a href="index.html">首页</a></li>')
            .find("li>a").attr("href", function () {
                return "../" + $(this).attr("href");
            });
    });

});